package com.example.seata.order.controller;


import com.example.seata.order.entity.OrderTbl;
import com.example.seata.order.service.IOrderTblService;
import org.example.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tianshuo
 * @since 2021-05-15
 */
@RestController
@RequestMapping("/order")
public class OrderTblController {

    @Autowired
    private IOrderTblService orderTblService;

    @GetMapping("/create")
    public Result create(OrderTbl orderTbl) {
        return Result.success(orderTblService.create(orderTbl));

    }
}

